package main

import "fmt"

func main() {
	var n, k, d int
	_, _ = fmt.Scan(&n, &k, &d)

	if n == 1 {
		fmt.Println(1)
		return
	}
	fmt.Println(f(n, k, d, 0, 1) - 1)
}

func f(n, k, d, cn, cd int) int {
	sum := 0

	for i := 1; i <= k; i++ {
		cn += i

		if cn > n || cd > n {
			return sum % 998244353
		}
		if cn == n {
			if cd >= d {
				return (sum + 1) % 998244353
			}
			return sum % 998244353
		}

		sum += f(n, k, d, cn, cd+1)

		cn -= i
	}

	return sum % 998244353
}
